package com.xyzwps.webfluxjava.common.exception;

import org.springframework.boot.web.reactive.error.ErrorAttributes;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@SuppressWarnings("unused")
@Configuration
public class ExceptionConfig {

    @Bean
    public ErrorAttributes errorAttributes() {
        return new MyErrorAttributes(true);
    }

}
